package com.learn;

public class test1 {
    int x = 25;

    public static void main(String[] args) {
        testSwitch('b');

        test1 t = new test1();
        {
            int x = 5;
        }
        {
            int x = 10;
        }
        int x = 100;
        System.out.println(x);
        System.out.println(t.x);
    }

    public static void testSwitch(char a) {
        int value = 0;
        switch (a) {
            case 'a':
                value = 50;
                break;
            case 'b':
                value = 100;
            case 'c':
                value = 150;

            default:
                value = 250;
                break;
        }
        System.out.println(value);
    }

    public test1() {
        int x = 1;
        System.out.println(x);
    }
}
